projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
562e492
)
GtkHeaderBar: Don't leak decoration layout
author
Guido Günther
<agx@sigxcpu.org>
Mon, 6 May 2019 10:55:16 +0000
(12:55 +0200)
committer
Guido Günther
<agx@sigxcpu.org>
Mon, 6 May 2019 10:59:20 +0000
(12:59 +0200)
Currently we leak priv->decoration_layout if the layout is set
multiple times.
gtk/gtkheaderbar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkheaderbar.c
b/gtk/gtkheaderbar.c
index 42a23008108ada43bbef2cbd411e66314e1247fb..dcdcb4f4fda376809207109c8b80adca7b981d5d 100644
(file)
--- a/
gtk/gtkheaderbar.c
+++ b/
gtk/gtkheaderbar.c
@@
-2045,6
+2045,7
@@
gtk_header_bar_set_decoration_layout (GtkHeaderBar *bar,
priv = gtk_header_bar_get_instance_private (bar);
+ g_free (priv->decoration_layout);
priv->decoration_layout = g_strdup (layout);
priv->decoration_layout_set = (layout != NULL);